package com.hup.utils.swing.view.commons;

import com.hup.utils.swing.customView.ImageLabel;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

/**
 * @author hugan
 * @date 2022/10/2
 */
public class CommonsTestForm2 {

    public JPanel root;
    public JButton button1;

    public CommonsTestForm2() {
        $$$setupUI$$$();
    }

    /**
     * Method generated by IntelliJ IDEA GUI Designer
     * >>> IMPORTANT!! <<<
     * DO NOT edit this method OR call it in your code!
     *
     * @noinspection ALL
     */
    private void $$$setupUI$$$() {
        root = new JPanel();
        root.setLayout(new GridBagLayout());
        final ImageLabel imageLabel1 = new ImageLabel();
        imageLabel1.setBackground(new Color(-16715253));
        imageLabel1.setHorizontalAlignment(4);
        imageLabel1.setIcon(new ImageIcon(getClass().getResource("/static/icon/icon_pipet.gif")));
        imageLabel1.setPadding(15);
        imageLabel1.setText("as哈哈哈");
        imageLabel1.setUnitedIconHeight(2.5f);
        imageLabel1.setUnitedIconWidth(3.5f);
        GridBagConstraints gbc;
        gbc = new GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = 0;
        root.add(imageLabel1, gbc);
        button1 = new JButton();
        button1.setText("Button");
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        root.add(button1, gbc);
        final ImageLabel imageLabel2 = new ImageLabel();
        imageLabel2.setIcon(new ImageIcon(getClass().getResource("/static/icon/icon_add.gif")));
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 1;
        gbc.fill = GridBagConstraints.BOTH;
        root.add(imageLabel2, gbc);
        final ImageLabel imageLabel3 = new ImageLabel();
        imageLabel3.setBackground(new Color(-10841358));
        imageLabel3.setFullIcon(true);
        imageLabel3.setIcon(new ImageIcon(getClass().getResource("/static/icon/icon_add.gif")));
        imageLabel3.setPadding(0);
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 2;
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        gbc.fill = GridBagConstraints.BOTH;
        root.add(imageLabel3, gbc);
        final ImageLabel imageLabel4 = new ImageLabel();
        imageLabel4.setBackground(new Color(-901686));
        imageLabel4.setIcon(new ImageIcon(getClass().getResource("/static/icon/icon_pipet.gif")));
        imageLabel4.setPadding(0);
        imageLabel4.setText("啊");
        imageLabel4.setUnitedIconHeight(1.0f);
        imageLabel4.setUnitedIconWidth(1.0f);
        gbc = new GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = 2;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        root.add(imageLabel4, gbc);
    }

    /**
     * @noinspection ALL
     */
    public JComponent $$$getRootComponent$$$() { return root; }

}
